#include "DirScanner.h"
#include "tinyxml2.h"
#include <iostream>
#include <map>
#include <string>
#include <regex>
#include <vector>
#include <fstream>

using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::ofstream;
using namespace tinyxml2;

struct RSSIteam
{
    string _docid;
    string _url;
    string _title;
    string _content;
    string _link;
    string _description;
};

class PageLib {
public:
    PageLib();
    ~PageLib();
    void create();
    void store();

public:
    DirScanner _dirScanner;
    vector<RSSIteam> _rss;
    std::map<int, std::pair<int, int>> _offsetLib;
};
